package cn.dzz.action;

import cn.dzz.pojo.User;
import com.opensymphony.xwork2.ActionSupport;

import java.util.List;
import java.util.Map;

/**
 * @author Echo42
 * @file Struts2
 * @create 2020年08月29日17:54
 */
public class CollectionAction extends ActionSupport {

    private List<User> userList;
    public List<User> getUserList() {
        return userList;
    }
    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    private Map<String,User> userMap;

    public Map<String, User> getUserMap() {
        return userMap;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    @Override
    public String execute() throws Exception {
        System.out.println(userList);

        return super.execute();
    }
}
